package com.turing.zuul.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user", path = "/user")
public interface UserClient {

    @GetMapping("getUserStatusById")
    Integer getUserStatusById(@RequestParam("userId") Integer userId);

    @GetMapping("CheckUserPrivilegeByUserId")
    boolean CheckUserPrivilegeByUserId(@RequestParam("userId") Integer userId,@RequestParam("mainRoleId") Integer mainRoleId, @RequestParam("url") String url);

    @GetMapping("getTokenByUserKey")
    Integer getTokenByUserKey(@RequestParam("userKey") String userKey);
}